package com.hdoit.ares.logical.acc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.tennetcn.common.dao.base.impl.SuperService;
import com.tennetcn.common.message.PagerModel;
import com.hdoit.ares.logical.acc.dao.ICustomerDemoDao;
import com.hdoit.ares.logical.acc.model.CustomerDemo;
import com.hdoit.ares.logical.acc.service.ICustomerDemoService;
import com.hdoit.ares.logical.viewmodel.acc.CustomerDemoSearch;
/**
 * @author      yujinhui
 * @email       
 * @createtime  2017年11月29日 12:03:12
 * @comment
 */
@Component
public class CustomerDemoServiceImpl extends SuperService<CustomerDemo> implements ICustomerDemoService{
    private ICustomerDemoDao customerDemoDao;
	public ICustomerDemoDao getCustomerDemoDao() {
		return customerDemoDao;
	}
    @Resource
	public void setCustomerDemoDao(ICustomerDemoDao customerDemoDao) {
		this.customerDemoDao = customerDemoDao;
	}
	@Override
	public List<CustomerDemo> queryListByBuyer(String loginId) {
		return customerDemoDao.queryListByBuyer(loginId);
	}
	@Override
	public List<CustomerDemo> queryList(CustomerDemoSearch search, PagerModel pagerModel) {
		return customerDemoDao.queryList(search,pagerModel);
	}
	@Override
	public List<CustomerDemo> queryList(CustomerDemoSearch search) {
		return customerDemoDao.queryList(search);
	}
	@Override
	public int queryCount(CustomerDemoSearch search) {
		return customerDemoDao.queryCount(search);
	}
	@Override
	public int queryMaxUserIdentity() {
		return customerDemoDao.queryMaxUserIdentity();
	}

}
